/*
 * Copyright 2012 ITC Tsinghua University. All Rights Reserved.
 */
package cn.edu.tsinghua.cic.ccss.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.forten.core.entity.rdb.hibernate.HibernateEntityWithCurrentTimeId;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * 
 * @author <a href="mailto:du_yi@bbn.cn">Duyi</a>
 * 
 * @since 2012-5-14
 */
@Entity
@Table(name = "THRS_GBGL_TKXXB")
@Cache(region = "courseSelectionCache", usage = CacheConcurrencyStrategy.READ_WRITE)
public class CourseCanceled extends HibernateEntityWithCurrentTimeId {
	private static final long serialVersionUID = 5838926582815672068L;

	@Column(name = "KC_ID")
	private long courseId;// 课程ID
	@Column(name = "GB_ID")
	private long cadreId;// 干部ID
	@Column(name = "TKCZSJ")
	private Date cancelTime;// 退课操作时间
	@Column(name = "TKCZR")
	private String cancelCardId;// 退课课操作人工作证号
	@Column(name = "TKYY")
	private String cancelReason;// 退课原因
	@Column(name = "yscgzzh")
	private String deletedCardNum = "0";
	@Column(name = "BZ")
	private String memo;// 备注

	public long getCourseId() {
		return courseId;
	}

	public void setCourseId(long courseId) {
		this.courseId = courseId;
	}

	public long getCadreId() {
		return cadreId;
	}

	public void setCadreId(long cadreId) {
		this.cadreId = cadreId;
	}

	public Date getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(Date cancelTime) {
		this.cancelTime = cancelTime;
	}

	public String getCancelCardId() {
		return cancelCardId;
	}

	public void setCancelCardId(String cancelCardId) {
		this.cancelCardId = cancelCardId;
	}

	public String getCancelReason() {
		return cancelReason;
	}

	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}

	/**
	 * @return the deletedCardNum
	 */
	public String getDeletedCardNum() {
		return deletedCardNum;
	}

	/**
	 * @param deletedCardNum
	 *            the deletedCardNum to set
	 */
	public void setDeletedCardNum(String deletedCardNum) {
		this.deletedCardNum = deletedCardNum;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
